package com.itheima.clientAndService01;

public class MathClass {
    public static void main(String[] args) {
        int num1 = Math.abs(-12);
        System.out.println(num1);

        double num2 = Math.floor(12.3);
        System.out.println(num2);

        double num3 = Math.ceil(12.3);
        System.out.println(num3);

        int max = Math.max(10, 20);
        System.out.println(max);

        int min = Math.min(10, 20);
        System.out.println(min);

        double random = Math.random();
        System.out.println(random);

        long round = Math.round(2.6);
        System.out.println(round);

        long round1 = Math.round(2.3);
        System.out.println(round1);

        double pow = Math.pow(2, 4);
        System.out.println(pow);
    }
}
